home *** CD-ROM | disk | FTP | other *** search
/ Champak 140 / (Vol 140) Sep 19 2011.iso / Games / mardek_rpg.swf / scripts / frame_102 / DoAction.as
Encoding:
Text File  |  2011-09-19  |  11.5 KB  |  299 lines

  1. function ┬º\x01\x02┬º()
  2. {
  3.    return 1192 % 511 * 5;
  4. }
  5. var ┬º\x01┬º = -357 + "\x01\x02"();
  6. while(true)
  7. {
  8.    if(eval("\x01") == 493)
  9.    {
  10.       set("\x01",eval("\x01") - 368);
  11.       ┬º┬ºpush(true);
  12.    }
  13.    else if(eval("\x01") == 125)
  14.    {
  15.       set("\x01",eval("\x01") - 43);
  16.       if(function ┬º\x01\x02┬º()
  17.       {
  18.          return 1192 % 511 * 5;
  19.       })
  20.       {
  21.          set("\x01",eval("\x01") + 534);
  22.       }
  23.    }
  24.    else if(eval("\x01") == 618)
  25.    {
  26.       set("\x01",eval("\x01") + 127);
  27.       if(function ┬º\x01\x02┬º()
  28.       {
  29.          return 1192 % 511 * 5;
  30.       })
  31.       {
  32.          set("\x01",eval("\x01") - 399);
  33.       }
  34.    }
  35.    else
  36.    {
  37.       if(eval("\x01") == 599)
  38.       {
  39.          set("\x01",eval("\x01") - 473);
  40.          break;
  41.       }
  42.       if(eval("\x01") == 98)
  43.       {
  44.          set("\x01",eval("\x01") + 700);
  45.       }
  46.       else if(eval("\x01") == 863)
  47.       {
  48.          set("\x01",eval("\x01") - 519);
  49.       }
  50.       else if(eval("\x01") == 588)
  51.       {
  52.          set("\x01",eval("\x01") + 11);
  53.          if(function ┬º\x01\x02┬º()
  54.          {
  55.             return 1192 % 511 * 5;
  56.          })
  57.          {
  58.             set("\x01",eval("\x01") - 473);
  59.          }
  60.       }
  61.       else if(eval("\x01") == 126)
  62.       {
  63.          set("\x01",eval("\x01") + 672);
  64.       }
  65.       else if(eval("\x01") == 350)
  66.       {
  67.          set("\x01",eval("\x01") - 6);
  68.       }
  69.       else if(eval("\x01") == 344)
  70.       {
  71.          set("\x01",eval("\x01") + 199);
  72.          ┬º┬ºpush("\x0f");
  73.          ┬º┬ºpush(1);
  74.       }
  75.       else
  76.       {
  77.          if(eval("\x01") == 82)
  78.          {
  79.             set("\x01",eval("\x01") + 534);
  80.             stop();
  81.             break;
  82.          }
  83.          if(eval("\x01") == 133)
  84.          {
  85.             set("\x01",eval("\x01") + 485);
  86.             ┬º┬ºpush(!function ┬º\x01\x02┬º()
  87.             {
  88.                return 1192 % 511 * 5;
  89.             });
  90.          }
  91.          else if(eval("\x01") == 117)
  92.          {
  93.             set("\x01",eval("\x01") + 377);
  94.          }
  95.          else if(eval("\x01") == 494)
  96.          {
  97.             set("\x01",eval("\x01") + 94);
  98.             ┬º┬ºpush(true);
  99.          }
  100.          else if(eval("\x01") == 745)
  101.          {
  102.             set("\x01",eval("\x01") - 399);
  103.          }
  104.          else if(eval("\x01") == 616)
  105.          {
  106.             set("\x01",eval("\x01") - 122);
  107.          }
  108.          else if(eval("\x01") == 798)
  109.          {
  110.             set("\x01",eval("\x01") - 264);
  111.             ┬º┬ºpush(true);
  112.          }
  113.          else
  114.          {
  115.             if(eval("\x01") == 868)
  116.             {
  117.                set("\x01",eval("\x01") - 518);
  118.                stop();
  119.                break;
  120.             }
  121.             if(eval("\x01") == 534)
  122.             {
  123.                set("\x01",eval("\x01") + 334);
  124.                if(function ┬º\x01\x02┬º()
  125.                {
  126.                   return 1192 % 511 * 5;
  127.                })
  128.                {
  129.                   set("\x01",eval("\x01") - 518);
  130.                }
  131.             }
  132.             else if(eval("\x01") == 543)
  133.             {
  134.                set("\x01",eval("\x01") + 425);
  135.                var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  136.                {
  137.                   return 1192 % 511 * 5;
  138.                };
  139.             }
  140.             else if(eval("\x01") == 718)
  141.             {
  142.                set("\x01",eval("\x01") - 585);
  143.                ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  144.                {
  145.                   return 1192 % 511 * 5;
  146.                }));
  147.             }
  148.             else
  149.             {
  150.                if(eval("\x01") != 968)
  151.                {
  152.                   if(eval("\x01") == 346)
  153.                   {
  154.                      set("\x01",eval("\x01") + 371);
  155.                      map = [[2,2,2,2,2,22,22,22,22,22,2,2,2,2,2],[2,2,2,22,22,1,1,3,1,1,22,22,2,2,2],[2,2,22,1,20,19,0,0,0,19,20,1,22,2,2],[2,2,1,0,0,5,5,4,5,5,0,0,1,2,2],[2,22,0,5,5,5,5,4,5,5,5,5,0,22,2],[2,3,0,5,5,5,5,4,5,5,5,5,0,3,2],[2,0,5,5,5,5,4,4,4,5,5,5,5,0,2],[2,0,5,5,5,4,11,8,12,4,5,5,5,0,2],[2,0,4,4,4,4,7,6,9,4,4,4,4,0,2],[2,0,5,5,5,4,14,10,13,4,5,5,5,0,2],[2,0,5,5,5,5,4,4,4,5,5,5,5,0,2],[2,2,0,5,5,5,5,4,5,5,5,5,0,2,2],[2,2,0,5,5,5,5,4,5,5,5,5,0,2,2],[2,2,2,0,0,5,5,4,5,5,0,0,2,2,2],[2,2,2,2,2,0,0,0,0,0,2,2,2,2,2]];
  156.                      tileset = "t_saucer2";
  157.                      area = "moric_saucer4";
  158.                      areaname = "Moric\'s Battleship - Bridge";
  159.                      ambience = null;
  160.                      A_sprites = [{name:"INTERJECTION",model:"_trigger",x:7,y:5,ExecuteScript:function()
  161.                      {
  162.                         if(_root.plotVars.BEATEN_MORIC !== 99 || _root.battle_trans._visible || _root.battling)
  163.                         {
  164.                            return undefined;
  165.                         }
  166.                         _root.Interjection("Mardek","beatenMoric99","c_GdM_Moric");
  167.                      }},{name:"INTERJECTION2",model:"_trigger",x:7,y:5,ExecuteScript:function()
  168.                      {
  169.                         if(_root.plotVars.MPossessCut != 10)
  170.                         {
  171.                            return undefined;
  172.                         }
  173.                         _root.Interjection("Mardek","beatenMoric99b","c_GdM_Moric");
  174.                      }},{name:"Moric",model:"s_z_socialfox",x:7,y:2,walkspeed:-2,dir:"s",elem:"EARTH",conv:"c_GdM_Moric"},{name:"WALK_TRIGGER",model:"_trigger",x:7,y:8,ExecuteScript:function()
  175.                      {
  176.                         if(_root.plotVars.walkedIntoZSF == null)
  177.                         {
  178.                            _root.plotVars.walkedIntoZSF = 1;
  179.                            DO_ACTIONS([["WALK",0,-3],["UNFREEZE"],["TALK","s","Moric"]],"PC",true);
  180.                         }
  181.                      }},{name:"TRANSPORT_TRIGGER",model:"_trigger",x:7,y:8,ExecuteScript:function()
  182.                      {
  183.                         if(this.V && _root.plotVars.BEATEN_MORIC == 99)
  184.                         {
  185.                            TRANS("moric_saucer3",4,4,true);
  186.                         }
  187.                      },EF:function()
  188.                      {
  189.                         if(!(_root.pco[0] == 4 && _root.pco[1] == 46) && !_root.warping)
  190.                         {
  191.                            this.V = true;
  192.                         }
  193.                      }},{name:"CUT_TRIGGER",model:"_trigger",x:7,y:5,ExecuteScript:function()
  194.                      {
  195.                         if(!_root.MSoulSeal)
  196.                         {
  197.                            return undefined;
  198.                         }
  199.                         if(_root.plotVars.MPossessCut != 10)
  200.                         {
  201.                            if(_root.plotVars.MPossessCut == 3)
  202.                            {
  203.                               this.count = this.count + 1;
  204.                               if(this.count >= 80)
  205.                               {
  206.                                  _root.plotVars.MPossessCut = 10;
  207.                                  _root.freeze = false;
  208.                                  _root.playMusic("none");
  209.                                  _root.cont.sky.setTransform({ra:100,ab:0,ga:100,gb:0,ba:100,rb:0,aa:100,ab:0});
  210.                                  _root.cont.PC.model.gotoAndStop("n1");
  211.                               }
  212.                               else
  213.                               {
  214.                                  _root.cont.sky.setTransform({ra:60 + this.count / 2,ab:0,ga:100,gb:0,ba:20 + this.count,rb:0,aa:100,ab:0});
  215.                               }
  216.                            }
  217.                            else if(_root.plotVars.MPossessCut == 2)
  218.                            {
  219.                               _root.SOUL._y -= 3;
  220.                               if(_root.SOUL._y <= _root.cont.Moric.getBounds(_root).yMin - 90)
  221.                               {
  222.                                  _root.playSFX("Slam");
  223.                                  this.count = 0;
  224.                                  _root.SOUL.gotoAndPlay("absorb");
  225.                                  _root.Flash(_root.cont.PC,[0,255,0]);
  226.                                  _root.plotVars.MPossessCut = 3;
  227.                               }
  228.                            }
  229.                            else if(_root.plotVars.MPossessCut == 1)
  230.                            {
  231.                               this.count = this.count + 1;
  232.                               if(this.count > 40 && this.count < 65)
  233.                               {
  234.                                  _root.cont.Moric._x = _root.cont.Moric.orig_x - 3 + random(7);
  235.                                  _root.cont.Moric._y = _root.cont.Moric.orig_y - 3 + random(7);
  236.                               }
  237.                               else
  238.                               {
  239.                                  _root.cont.Moric._x = _root.cont.Moric.orig_x;
  240.                                  _root.cont.Moric._y = _root.cont.Moric.orig_y;
  241.                               }
  242.                               if(this.count == 70)
  243.                               {
  244.                                  _root.Flash(_root,[0,255,0]);
  245.                                  _root.playSFX("Slam");
  246.                                  _root.attachMovie("s_soul_E","SOUL",14151);
  247.                                  _root.SOUL._x = _root.cont.Moric.getBounds(_root).xMin;
  248.                                  _root.SOUL._y = _root.cont.Moric.getBounds(_root).yMin;
  249.                                  _root.SOUL._width = _root.SOUL._height = 30;
  250.                                  _root.SOUL._alpha = 0;
  251.                               }
  252.                               if(_root.SOUL != null && _root.SOUL._alpha < 100)
  253.                               {
  254.                                  _root.SOUL._alpha += 20;
  255.                               }
  256.                               if(this.count == 120)
  257.                               {
  258.                                  _root.plotVars.MPossessCut = 2;
  259.                               }
  260.                            }
  261.                            else if(_root.plotVars.MPossessCut == null)
  262.                            {
  263.                               _root.cont.Moric.orig_x = 0 + _root.cont.Moric._x;
  264.                               _root.cont.Moric.orig_y = 0 + _root.cont.Moric._y;
  265.                               _root.plotVars.MPossessCut = 1;
  266.                               _root.freeze = true;
  267.                               this.frozenrunning = true;
  268.                               _root.Flash(_root,[0,255,0]);
  269.                               _root.playSFX("Slam");
  270.                               _root.cont.sky.setTransform({ra:60,ab:0,ga:100,gb:0,ba:20,rb:0,aa:100,ab:0});
  271.                               _root.cont.PC.model.gotoAndStop("conjureN1");
  272.                               this.count = 0;
  273.                            }
  274.                         }
  275.                      }}];
  276.                      A_sprites.push();
  277.                      areaLoot = [];
  278.                      foes = [];
  279.                      btlChance = 0;
  280.                      minSteps = 5;
  281.                      levelrange = [1,1];
  282.                      musicTrack = _root.plotVars.DOOM_TICKER == null ? (plotVars.BEATEN_MORIC != 99 ? "GdM" : "none") : "Flee";
  283.                      AreaSetup();
  284.                      break;
  285.                   }
  286.                   if(eval("\x01") == 717)
  287.                   {
  288.                      set("\x01",eval("\x01") - 717);
  289.                   }
  290.                   break;
  291.                }
  292.                set("\x01",eval("\x01") - 250);
  293.                ┬º┬ºpush("\x0f");
  294.             }
  295.          }
  296.       }
  297.    }
  298. }
  299.